package com.itzjc.domain.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * 封装当前项目的所有信息的类,这不是pojo，没有对应的表
 *
 * @className: CurrentProjectInfo
 * @date: 2021-06-15 08:55
 **/
public class CurrentProjectInfo implements Serializable {
    private Integer id;
    @JsonProperty("project_name")
    private String projectName;
    private Integer ownerId;
    @JsonProperty("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    private String address;
    private String img;
    //这里的type就不用改了，因为查询的时候type冲突了，所以取名叫stype
    //此处只是一个封装类，不涉及查询，叫type没有问题
    private  String type;

    //还缺少obj、mtl信息，所以补上
    private String obj;
    private String mtl;

    //整合接受其他的POJO数据
    //风的信息，不用取具体的对象，封装一个值就行了
    private Double windValue01;
    //温度信息
    private Double temperatureValue01;
    //挠度信息
    private Double deflectionValue01;
    //应力信息
    private Double stressValue01;
    //损伤和安全等级
    private LifeEstimationInfo lifeEstimationInfo;
    //结构是看位移的，所以这里也有位移需要用上
    private Double dispalcementValue01;


    //有参、空参、set/get、toString


    @Override
    public String toString() {
        return "CurrentProjectInfo{" +
                "id=" + id +
                ", projectName='" + projectName + '\'' +
                ", ownerId=" + ownerId +
                ", createTime=" + createTime +
                ", address='" + address + '\'' +
                ", img='" + img + '\'' +
                ", type='" + type + '\'' +
                ", obj='" + obj + '\'' +
                ", mtl='" + mtl + '\'' +
                ", windValue01=" + windValue01 +
                ", temperatureValue01=" + temperatureValue01 +
                ", deflectionValue01=" + deflectionValue01 +
                ", stressValue01=" + stressValue01 +
                ", lifeEstimationInfo=" + lifeEstimationInfo +
                ", dispalcementValue01=" + dispalcementValue01 +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public Integer getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(Integer ownerId) {
        this.ownerId = ownerId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getObj() {
        return obj;
    }

    public void setObj(String obj) {
        this.obj = obj;
    }

    public String getMtl() {
        return mtl;
    }

    public void setMtl(String mtl) {
        this.mtl = mtl;
    }

    public Double getWindValue01() {
        return windValue01;
    }

    public void setWindValue01(Double windValue01) {
        this.windValue01 = windValue01;
    }

    public Double getTemperatureValue01() {
        return temperatureValue01;
    }

    public void setTemperatureValue01(Double temperatureValue01) {
        this.temperatureValue01 = temperatureValue01;
    }

    public Double getDeflectionValue01() {
        return deflectionValue01;
    }

    public void setDeflectionValue01(Double deflectionValue01) {
        this.deflectionValue01 = deflectionValue01;
    }

    public Double getStressValue01() {
        return stressValue01;
    }

    public void setStressValue01(Double stressValue01) {
        this.stressValue01 = stressValue01;
    }

    public LifeEstimationInfo getLifeEstimationInfo() {
        return lifeEstimationInfo;
    }

    public void setLifeEstimationInfo(LifeEstimationInfo lifeEstimationInfo) {
        this.lifeEstimationInfo = lifeEstimationInfo;
    }

    public Double getDispalcementValue01() {
        return dispalcementValue01;
    }

    public void setDispalcementValue01(Double dispalcementValue01) {
        this.dispalcementValue01 = dispalcementValue01;
    }

    public CurrentProjectInfo(Integer id, String projectName, Integer ownerId, Date createTime, String address, String img, String type, String obj, String mtl, Double windValue01, Double temperatureValue01, Double deflectionValue01, Double stressValue01, LifeEstimationInfo lifeEstimationInfo, Double dispalcementValue01) {
        this.id = id;
        this.projectName = projectName;
        this.ownerId = ownerId;
        this.createTime = createTime;
        this.address = address;
        this.img = img;
        this.type = type;
        this.obj = obj;
        this.mtl = mtl;
        this.windValue01 = windValue01;
        this.temperatureValue01 = temperatureValue01;
        this.deflectionValue01 = deflectionValue01;
        this.stressValue01 = stressValue01;
        this.lifeEstimationInfo = lifeEstimationInfo;
        this.dispalcementValue01 = dispalcementValue01;
    }

    public CurrentProjectInfo() {
    }
}
